package manager.bean;

import java.util.Date;

public class User {
    private int id;
    private String username;
    private String userpass;
    private int staff_id;
    private Date lastlogin;
    private int isroot;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", userpass='" + userpass + '\'' +
                ", staff_id=" + staff_id +
                ", lastlogin=" + lastlogin +
                ", isroot=" + isroot +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserpass() {
        return userpass;
    }

    public void setUserpass(String userpass) {
        this.userpass = userpass;
    }

    public int getStaff_id() {
        return staff_id;
    }

    public void setStaff_id(int staff_id) {
        this.staff_id = staff_id;
    }

    public Date getLastlogin() {
        return lastlogin;
    }

    public void setLastlogin(Date lastlogin) {
        this.lastlogin = lastlogin;
    }

    public int getIsroot() {
        return isroot;
    }

    public void setIsroot(int isroot) {
        this.isroot = isroot;
    }

    public User() {
    }

    public User(int id, String username, String userpass, int staff_id, Date lastlogin, int isroot) {
        this.id = id;
        this.username = username;
        this.userpass = userpass;
        this.staff_id = staff_id;
        this.lastlogin = lastlogin;
        this.isroot = isroot;
    }
}
